package com.itheima.service;

import com.itheima.bean.Category;
import com.itheima.bean.PageBean;
import com.itheima.common.R;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author tang
 * @date 2022/11/22 20:02
 */

public interface CategoryService {
    R<String> add(Category category);

    R<PageBean<Category>> findPage(Integer page, Integer pageSize);

    R<String> deleteById(Long id);

    R<String> updateById(Category category);

    R<List<Category>> findByType(Integer type);

    /* R<List<Category>> findByType(Integer type);*/
}
